import { css } from "@emotion/core";
import React from "react";
const style = css`
    width:200px;
    height:50px;
    background:red
`
const style2 = css`
    background:orange
`
function Child(props) {
    return (
        //会把App.js中传递过来的css对原有的css进行覆盖
        <div css={style} {...props}>css优先级</div>
    )
}
export default function CssPriority() {
    return (
        <Child css={style2} />
    )
}